package com.zn.kjj.service;

import com.zn.kjj.dao.KjjBasicInfoMapper;
import com.zn.kjj.dao.SysLoginDao;
import com.zn.kjj.dao.SysLoginXtyhMapper;
import com.zn.kjj.entity.KjjBasicInfo;
import com.zn.kjj.entity.SysLogin;
import com.zn.kjj.entity.SysLoginXtyh;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author Administrator
 */
@Service("kjjBasicInfoImpl")
public class KjjBasicInfoImpl implements KJJBasicInfoable {
    /**@Autowired
    private SysLoginDao sysLoginDao;
     */
    @Autowired
    private KjjBasicInfoMapper kjj;
    @Override
    public int deleteByPrimaryKey(String guid) {
        return kjj.deleteByPrimaryKey(guid);
    }

    @Override
    public int insert(KjjBasicInfo record) {
        return kjj.insert(record);
    }

    @Override
    public int insertSelective(KjjBasicInfo record) {
        return kjj.insertSelective(record);
    }

    @Override
    public KjjBasicInfo selectByPrimaryKey(String guid) {
        return kjj.selectByPrimaryKey(guid);
    }

    @Override
    public int updateByPrimaryKeySelective(KjjBasicInfo record) {
        return kjj.updateByPrimaryKeySelective(record);
    }

    @Override
    public List<KjjBasicInfo> selectAll() {
        return kjj.selectAll();
    }

    @Override
    public int updateByPrimaryKey(KjjBasicInfo record) {
        return kjj.updateByPrimaryKey(record);
    }
/**
    @Override
    @Transactional(propagation = Propagation.REQUIRED,isolation = Isolation.READ_COMMITTED,timeout=36000,rollbackFor=Exception.class)
    public int insertCascade(SysLogin sysLogin, SysLoginXtyh sysLoginXtyh) {
        sysLoginDao.insert(sysLogin);
        sysLoginXtyhMapper.insertSelective(sysLoginXtyh);
        return 1;
    }
*/


}
